import {createRouter, createWebHistory} from 'vue-router'
const router=createRouter({
    history:createWebHistory(),
    routes:[
        {
            path:"/home",
            component:()=>import("../views/Home.vue"),
            children:[
                {
                    path:'fans',
                    component:()=>import("../views/Fans.vue"),
                },
                {
                    path:'focus',
                    component:()=>import("../views/Focus.vue"),
                }
            ]
        },
        {
            path:"/books",
            component:()=>import("../views/Books.vue")
        },
        {
            path:"/my",
            component:()=>import("../views/My.vue")
        },
    ]
})
export default router;